<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/view/inc/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<security:csrfMetaTags/>
<script type="text/javascript" src='${r"${basepath}"}${generatorConfig.viewGeneratorConfig.targetPackage}/${table.tableName?lower_case?substring(table.tableName?index_of("_")+1)}/${table.entityName?lower_case}list.js'></script>
<script type="text/javascript">
$(function() {
	init();
});
</script> 
</head>
<body>
<div class="easyui-layout"
	 data-options='fit:true,border:false'>
<div class="search" style="height: 50px"
	 data-options="
		region:'north'">
	<table class='noborder'>
		<tr>
		<#list table.columnList as column>
		<#if column.propertyName!= "id"
			 && column.propertyName!= "updater"
			 && column.propertyName!= "updateTime"
			 && column.propertyName!= "creater"
			 && column.propertyName!= "createTime"
		>
			<th><label>${column.columnComment}:</label></th>
			<td><input  class="easyui-textbox" data-options="prompt:'输入${column.columnComment}'" name="q_${column.propertyName}"  id="q_${column.propertyName}" ></input></td>
		</#if>
		</#list>
			<td><a href="javascript:load${table.entityName}()"class="easyui-linkbutton" plain="true" iconCls="icon-search">查询</a></td>
		</tr>
	</table>
</div>
<div data-options="region:'center'">
	<table id="${table.entityName?lower_case}dg" class="easyui-datagrid"
		data-options="
				toolbar: '#tb',
				onDblClickRow:function(rowIndex, rowData){
									//SKY_EASYUI.beginEdit('${table.entityName?lower_case}dg',rowIndex);
							  }
			">
		<thead>
			<tr>
				<th data-options="field: 'checked', checkbox:true"></th>
				<#list table.columnList as column>
				<#if column.propertyName!= "id"
					 && column.propertyName!= "updater"
					 && column.propertyName!= "updateTime"
					 && column.propertyName!= "creater"
					 && column.propertyName!= "createTime"
				>
					<th data-options="field:'${column.propertyName}',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">${column.columnComment}</th>
				</#if>
				</#list>
			</tr>
		</thead>
	</table>
</div>
</div>
<div id="tb" style="height: auto">
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-add',plain:true" onclick="add${table.entityName}()">增加</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-edit',plain:true" onclick="edit${table.entityName}()">修改</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-20130408025545236_easyicon_net_30',plain:true" onclick="del${table.entityName}()">删除</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-06',plain:true" onclick="detail${table.entityName}()">查看明细</a>
</div>
</body>
</html>